<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Credit
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: Send.php 09.01.12 14:09 TeaJay $
 * @author     Taalay
 */

/**
 * @category   Application_Extensions
 * @package    Credit
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

class Credit_Form_Send extends Engine_Form
{
  public function init()
  {
    $this
      ->setAttribs(array(
        'id' => 'send_credit_form',
        'class' => 'global_form_box'
      ))
    ;

    $this->addElement('Text', 'username', array(
      'label' => 'Your Friend Name',
      'autocomplete' => 'off',
      'description' => 'start typing...',
      'filters' => array(
        new Engine_Filter_Censor(),
      ),
    ))->getElement('username')->getDecorator("Description")->setOption("placement", "append");

    $this->addElement('Text', 'credit', array(
      'label' => 'Credit',
    ));

    $this->addElement('Hidden', 'user_id');

    $this->addElement('Button', 'submit', array(
      'label' => 'Send Credit',
      'type' => 'submit',
    ));
  }
}
